package com.qingzhou.web.repository.entity;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.Table;
import com.mybatisflex.core.handler.Fastjson2TypeHandler;
import com.qingzhou.common.web.domain.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

/**
 * 影像学检验 对象
 * 第二版
 * @author xm
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Table(value = "edc_imaging")
public class ImagingEntity extends BaseEntity {
    private static final long serialVersionUID = 1L;

    @Id
    private Long id;

    @ApiModelProperty(value = "状态")
    private String status;

    @ApiModelProperty(value = "患者编号")
    private String patientCode;

    @ApiModelProperty(value="影像检测具体内容",notes = "目前是存为一个字段，是json数组。以后若有需要，可以清洗一次数据，把这个字段里的数据存到一张单独的表里")
    @Column(typeHandler = Fastjson2TypeHandler.class)
    List<ImgTestInfo> imgTestInfoList;

    @ApiModelProperty("数据检查原因")
    private String editReason;

    @ApiModelProperty("终止原因")
    private String stopReason;

}
